//
// Created by ASUS on 2023/5/11.
//
#include<iostream>

using namespace std;

int main() {
    int a, b;
    cin >> a >> b;
    int i = 0, sum = 0;
    int g = 0;
    g = a ^ b;
    for (i = 0; i < 32; i++)
    {
        if ((g >> i) & 1)
        {
            sum++;
        }


    }
    cout << sum;
}
